﻿<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="Ruandao.MiniFace" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    string code = "code...";
    void Page_Load(object sender, EventArgs e)
    {
        StreamReader reader = new StreamReader(Request.MapPath("~/TestSyntaxhighlighter/test.html"));
        code = reader.ReadToEnd();
        reader.Close();
        this.DataBind();
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <%= RenderTheme.ReferenceTheme("Common",null) %>
    <%= RenderTheme.ReferenceTheme("others", null)%>
    
    <%= Page.ReferenceSyntaxHighlight("/Themes/PublicSkins/syntaxhighlighter-3.0/") %>
</head>
<body>  
   
    <h2>test.html</h2>
    <%# this.SyntaxHighlightHtml(code,"js",false) %>

    <script type="text/javascript">
        SyntaxHighlighter.autoloader(
          'applescript            /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushAppleScript.js',
          'actionscript3 as3      /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushAS3.js',
          'bash shell             /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushBash.js',
          'coldfusion cf          /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushColdFusion.js',
          'cpp c                  /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushCpp.js',
          'c# c-sharp csharp      /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushCSharp.js',
          'css                    /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushCss.js',
          'delphi pascal          /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushDelphi.js',
          'diff patch pas         /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushDiff.js',
          'erl erlang             /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushErlang.js',
          'groovy                 /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushGroovy.js',
          'java                   /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushJava.js',
          'jfx javafx             /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushJavaFX.js',
          'js jscript javascript  /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushJScript.js',
          'perl pl                /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushPerl.js',
          'php                    /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushPhp.js',
          'text plain             /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushPlain.js',
          'py python              /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushPython.js',
          'ruby rails ror rb      /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushRuby.js',
          'sass scss              /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushSass.js',
          'scala                  /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushScala.js',
          'sql                    /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushSql.js',
          'vb vbnet               /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushVb.js',
          'xml xhtml xslt html    /Themes/PublicSkins/syntaxhighlighter-3.0/scripts/shBrushXml.js');
        SyntaxHighlighter.all();  
     </script>
</body>
</html>
